package com.cmc.cloud.cmclink.doc.api.document.rep;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * SO的bcr检查 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 *
 * @author codegen
 */
@Data
public class SoBcrCheckBaseDto {
    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "17176")
    @NotNull(message = "{sobcrcheck.soid.notnull}")
    private Long soId;

    @Schema(description = "禁用类主id", requiredMode = Schema.RequiredMode.REQUIRED, example = "29434")
    @NotNull(message = "{sobcrcheck.rulemainid.notnull}")
    private Long ruleMainId;

    @Schema(description = "规则名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    @NotBlank(message = "{sobcrcheck.rulename.notblank}")
    @Length(max = 30, message = "{sobcrcheck.rulename.length}")
    private String ruleName;

    @Schema(description = "规则类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotBlank(message = "{sobcrcheck.ruletype.notblank}")
    @Length(max = 30, message = "{sobcrcheck.ruletype.length}")
    private String ruleType;

    @Schema(description = "代码")
    @Length(max = 50, message = "{sobcrcheck.code.length}")
    private String code;

    @Schema(description = "中文名称")
    @Length(max = 500, message = "{sobcrcheck.desc.length}")
    private String codeDesc;

    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "{sobcrcheck.checkstatus.notnull}")
    private Boolean checkStatus;

//    public SoBcrCheckBaseDto() {
//
//    }
//
//    public SoBcrCheckBaseDto(Long soId, Long ruleMainId, String ruleName, String ruleType, String codeDesc, Boolean checkStatus) {
//        this.soId = soId;
//        this.ruleMainId = ruleMainId;
//        this.ruleName = ruleName;
//        this.ruleType = ruleType;
//        this.codeDesc = codeDesc;
//        this.checkStatus = checkStatus;
//    }
//
//    public SoBcrCheckBaseDto(Long soId, Long ruleMainId, String ruleName, String ruleType, String code, String codeDesc, Boolean checkStatus) {
//        this.soId = soId;
//        this.ruleMainId = ruleMainId;
//        this.ruleName = ruleName;
//        this.ruleType = ruleType;
//        this.code = code;
//        this.codeDesc = codeDesc;
//        this.checkStatus = checkStatus;
//    }
}
